<%@page import="java.io.PrintStream"%>
<%@page import="java.io.ByteArrayOutputStream"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="begin.jsp"%>
<style>
.exception {
	width: 560px;
	margin: 0px auto;
}

.exception dl .error {
	width: 560px;
	border-bottom: 1px solid #ebebeb;
	background-color: rgb(245, 245, 245);
	margin: 100px 0px 10px 0px
}

.exception dl .error dt {
	height: 44px;
	text-align: left;
	line-height: 44px;
	padding: 0px 15px
}
</style>
<script>
$(function(){
	$('#toggle').toggle(function(){
		$('#stackInfo').show();
	},function(){
		$('#stackInfo').hide();
	});
});
</script>
<div class="exception">
	<dl class="error">
		<dt>提示信息</dt>
		<dd></dd>
		<dd style="font-family: Microsoft YaHei; font-size: 19px;">
			<%
					out.print(((Exception) (request.getAttribute("exception"))).getMessage());
				%>
			<br /> 点击<a href="logoff" target="parent">返回</a>登录页面! <br /> <a
				href="javascript:void(0);" id="toggle">切换</a>
			<div id="stackInfo" style="display: none;">
				<%
			  ByteArrayOutputStream buf = new ByteArrayOutputStream();
				PrintStream ps = new PrintStream(buf);
				((Exception) (request.getAttribute("exception")))
						.printStackTrace(ps);
				out.print(buf.toString().replaceAll("\n","<br/>")); 
			 %>
			</div>

		</dd>
	</dl>
</div>
<%@include file="end.jsp"%>